let Apc = class extends Laya.Sprite{

    constructor(type,speed){
        super()
       
       this.type = type

       this.className = "Apc"

        this.img = new Laya.Sprite()
        this.speed = speed
      
        this.init()
    }

    init(){
          this.img.loadImage("blue.png")
          this.addChild(this.img)
          if(this.type == 2){
              this.pos(160,0)
          }
          Laya.timer.frameLoop(1,this,this.run)
    }

    run(){
        this.y += this.speed
    }


}